;; 解决乱码问题
(prefer-coding-system 'utf-8)
(unless *is-windows*
    (set-selection-coding-system 'utf-8))


;; 设置垃圾回收阈值，加快启动速度
(setq gc-cons-threshold most-positive-fixnum)

;;disable scroll bar and tool bar
(scroll-bar-mode -1)
(tool-bar-mode -1)
(setq inhibit-startup-screen t)

(provide 'init-startup)
